cmake_minimum_required (VERSION 3.8)
project (libkiss)

SET(CMAKE_TOOLCHAIN_FILE "e:/project/c++/vcpkg/scripts/buildsystems/vcpkg.cmake")

SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/lib)

# c++11 support
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")

set(LIB_LIST)

# application
file(GLOB DIR_SRCS "kiss_*.c" "kiss_sdl.h")

# library
ADD_LIBRARY(kiss STATIC ${DIR_SRCS})
TARGET_LINK_LIBRARIES(kiss ${LIB_LIST})
